package com.tuling.circulardependencies;

import com.tuling.iocbeanlifecicle.Car;
import org.springframework.context.annotation.*;

/**
 * Created by xsls on 2019/5/29.
 */
@Configuration
@ComponentScan(basePackages = {"com.tuling.circulardependencies"})
//@ImportResource(value = {"classpath:beans/beans.xml"})
@EnableAspectJAutoProxy
public class MainConfig {

	@Bean("car")
	public Car car(){
		Car car = new Car();
		car.setName("car" + Math.random());
		return car;
	}


}
